package com.chilli.cosima.action.usermanager;

import com.chilli.cosima.action.BaseSupport;
import com.chilli.cosima.common.BussinessException;
import com.chilli.cosima.service.UserService;

public class UserDelAction extends BaseSupport
{
	/**
	 * 注释内容
	 */
	private static final long serialVersionUID = -6471410439979590724L;

	private UserService userService;

	private Long id;

	public String execute()
	{
		try
		{
			Long[] ids = new Long[]
			{ id };
			userService.deleteUser(ids);
		} catch (BussinessException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return SUCCESS;
	}

	public UserService getUserService()
	{
		return userService;
	}

	public void setUserService(UserService userService)
	{
		this.userService = userService;
	}

	public Long getId()
	{
		return id;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

}
